package org.skyfree.ghyll.tcard.progress;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
import org.skyfree.ghyll.tcard.core.ITWorkpiece;

public class InProgressWorkpieceInput implements IEditorInput 
{
	private ITWorkpiece wp;
	
	public InProgressWorkpieceInput(ITWorkpiece wp)
	{
		this.wp = wp;
	}
	
	@Override
	public boolean exists() 
	{
		return true;
	}

	@Override
	public ImageDescriptor getImageDescriptor() 
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getName() 
	{
		return this.wp.getName();
	}

	@Override
	public IPersistableElement getPersistable() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getToolTipText() 
	{
		return this.wp.getName();
	}

	@SuppressWarnings("unchecked")
	@Override
	public Object getAdapter(Class adapter) {
		// TODO Auto-generated method stub
		return null;
	}

	public ITWorkpiece getWp() {
		return wp;
	}

	
}
